<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TechCorp - 企业解决方案提供商</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* 亮色主题变量 */
            --bg-color: #ffffff;
            --text-color: #24292f;
            --border-color: #d0d7de;
            --card-bg: #f6f8fa;
            --header-bg: #f6f8fa;
            --accent-color: #0969da;
            --accent-hover: #0550ae;
            --code-bg: rgba(175, 184, 193, 0.2);
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
            --tag-bg: #ddf4ff;
            --tag-color: #0969da;
            --filter-bg: #f6f8fa;
            --input-bg: #ffffff;
            --hero-bg: #f6f8fa;
            --section-spacing: 80px;
            --section-spacing-mobile: 60px;
        }

        .dark-theme {
            /* 深色主题变量 */
            --bg-color: #0d1117;
            --text-color: #e6edf3;
            --border-color: #30363d;
            --card-bg: #161b22;
            --header-bg: #161b22;
            --accent-color: #2f81f7;
            --accent-hover: #1c6bdb;
            --code-bg: rgba(110, 118, 129, 0.4);
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.7);
            --tag-bg: #388bfd26;
            --tag-color: #58a6ff;
            --filter-bg: #161b22;
            --input-bg: #0d1117;
            --hero-bg: #0d1117;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: background-color 0.3s, color 0.3s, border-color 0.3s;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.5;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 统一的区块间距 */
        section {
            padding: var(--section-spacing) 0;
        }

        /* 头部导航 */
        header {
            background-color: var(--header-bg);
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            position: relative;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            font-size: 20px;
            color: var(--text-color);
            text-decoration: none;
            z-index: 101;
        }

        .logo i {
            color: var(--accent-color);
        }

        .nav-links {
            display: flex;
            gap: 24px;
        }

        .nav-links a {
            color: var(--text-color);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .nav-links a:hover {
            color: var(--accent-color);
        }

        .nav-links a.active {
            color: var(--accent-color);
            font-weight: 600;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .btn {
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid var(--border-color);
        }

        .btn-primary {
            background-color: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
        }

        .btn-primary:hover {
            background-color: var(--accent-hover);
            border-color: var(--accent-hover);
        }

        .btn-secondary {
            background-color: transparent;
            color: var(--text-color);
        }

        .btn-secondary:hover {
            background-color: var(--code-bg);
        }

        .theme-toggle {
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 8px 12px;
            color: var(--text-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .theme-toggle:hover {
            background-color: var(--code-bg);
        }

        .mobile-menu {
            display: none;
            background: none;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            color: var(--text-color);
            cursor: pointer;
            padding: 8px 12px;
            font-size: 16px;
            transition: all 0.2s ease;
        }

        .mobile-menu:hover {
            background-color: var(--code-bg);
        }

        /* 英雄区域 */
        .hero {
            background-color: var(--hero-bg);
            padding: 120px 0 80px;
            text-align: center;
            border-bottom: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(9, 105, 218, 0.05) 0%, rgba(9, 105, 218, 0.02) 100%);
            z-index: 0;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 16px;
            line-height: 1.2;
        }

        .hero p {
            font-size: 20px;
            margin-bottom: 32px;
            opacity: 0.8;
            line-height: 1.6;
        }

        .hero-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 60px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 36px;
            font-weight: 700;
            color: var(--accent-color);
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 14px;
            opacity: 0.8;
        }

        /* 主要内容区域 */
        .section-header {
            text-align: center;
            margin-bottom: 48px;
        }

        .section-header h2 {
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .section-header p {
            font-size: 18px;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.8;
        }

        /* 内容网格 */
        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
        }

        .content-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 24px;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .content-card:hover {
            border-color: var(--accent-color);
            transform: translateY(-4px);
        }

        .card-icon {
            font-size: 32px;
            color: var(--accent-color);
            margin-bottom: 16px;
        }

        .content-card h3 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .content-card p {
            font-size: 14px;
            opacity: 0.8;
            margin-bottom: 16px;
            flex-grow: 1;
        }

        .card-link {
            color: var(--accent-color);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: all 0.2s ease;
        }

        .card-link:hover {
            gap: 8px;
        }

        /* 客户案例 */
        .clients-section {
            background-color: var(--hero-bg);
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .clients-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 32px;
            align-items: center;
        }

        .client-logo {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 80px;
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }

        .client-logo:hover {
            opacity: 1;
        }

        .client-logo img {
            max-width: 120px;
            max-height: 50px;
            filter: grayscale(100%);
            transition: filter 0.3s ease;
        }

        .client-logo:hover img {
            filter: grayscale(0%);
        }

        /* 团队介绍 */
        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 24px;
        }

        .team-member {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 24px;
            text-align: center;
            transition: all 0.2s ease;
        }

        .team-member:hover {
            border-color: var(--accent-color);
            transform: translateY(-2px);
        }

        .member-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin: 0 auto 16px;
            object-fit: cover;
        }

        .member-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .member-role {
            font-size: 14px;
            color: var(--accent-color);
            margin-bottom: 12px;
        }

        .member-bio {
            font-size: 14px;
            opacity: 0.8;
            margin-bottom: 16px;
        }

        .member-social {
            display: flex;
            justify-content: center;
            gap: 12px;
        }

        .member-social a {
            color: var(--text-color);
            opacity: 0.7;
            transition: all 0.2s ease;
        }

        .member-social a:hover {
            color: var(--accent-color);
            opacity: 1;
        }

        /* CTA区域 */
        .cta-section {
            text-align: center;
            background: linear-gradient(135deg, rgba(9, 105, 218, 0.05) 0%, rgba(9, 105, 218, 0.02) 100%);
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }

        .cta-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .cta-content h2 {
            font-size: 32px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .cta-content p {
            font-size: 18px;
            margin-bottom: 32px;
            opacity: 0.8;
        }

        /* 联系表单 */
        .contact-form {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 32px;
            max-width: 600px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 600;
        }

        .form-input {
            width: 100%;
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background-color: var(--input-bg);
            color: var(--text-color);
            font-size: 14px;
            transition: border-color 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
        }

        .dark-theme .form-input:focus {
            box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.2);
        }

        .form-textarea {
            min-height: 120px;
            resize: vertical;
        }

        /* 页脚 */
        footer {
            border-top: 1px solid var(--border-color);
            padding: 60px 0 32px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 8px;
        }

        .footer-links a {
            color: var(--text-color);
            text-decoration: none;
            font-size: 14px;
            opacity: 0.8;
            transition: all 0.2s ease;
        }

        .footer-links a:hover {
            opacity: 1;
            color: var(--accent-color);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 32px;
            border-top: 1px solid var(--border-color);
            font-size: 14px;
            opacity: 0.7;
        }

        /* 响应式设计优化 */
        @media (max-width: 768px) {
            :root {
                --section-spacing: var(--section-spacing-mobile);
            }

            .container {
                padding: 0 16px;
            }

            .navbar {
                padding: 12px 0;
            }

            .logo {
                font-size: 18px;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background-color: var(--header-bg);
                border-top: 1px solid var(--border-color);
                flex-direction: column;
                padding: 16px 20px;
                display: none;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links a {
                padding: 12px 0;
                border-bottom: 1px solid var(--border-color);
                font-size: 16px;
            }

            .nav-links a:last-child {
                border-bottom: none;
            }

            .mobile-menu {
                display: block;
                min-height: 44px;
                min-width: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .theme-toggle,
            .mobile-menu {
                padding: 10px 14px;
            }

            .hero {
                padding: 80px 0 60px;
            }

            .hero h1 {
                font-size: 36px;
            }

            .hero p {
                font-size: 18px;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .hero-stats {
                gap: 30px;
            }

            .section-header h2 {
                font-size: 28px;
            }

            .section-header p {
                font-size: 16px;
            }

            .content-grid {
                grid-template-columns: 1fr;
            }

            .clients-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 20px;
            }

            .team-grid {
                grid-template-columns: 1fr;
            }

            .cta-content h2 {
                font-size: 28px;
            }

            .cta-content p {
                font-size: 16px;
            }

            .contact-form {
                padding: 24px;
            }

            /* 减少移动端的动画效果 */
            * {
                transition: none;
            }

            /* 保留必要的过渡 */
            .theme-toggle,
            .mobile-menu,
            .nav-links a,
            .btn,
            .card-link {
                transition: all 0.2s ease;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 12px;
            }

            .hero h1 {
                font-size: 32px;
            }

            .hero p {
                font-size: 16px;
            }

            .stat-number {
                font-size: 28px;
            }

            .section-header h2 {
                font-size: 24px;
            }

            .content-card {
                padding: 20px;
            }

            .clients-grid {
                grid-template-columns: 1fr;
            }

            .team-member {
                padding: 16px;
            }
        }
    </style>
</head>

<body class="light-theme">
    <header>
        <div class="container">
            <nav class="navbar">
                <a href="index.html" class="logo">
                    <i class="fas fa-code"></i>
                    TechCorp
                </a>

                <div class="nav-links">
                    <a href="#home" class="active">首页</a>
                    <a href="#services">服务</a>
                    <a href="#clients">客户</a>
                    <a href="#team">团队</a>
                    <a href="#contact">联系</a>
                </div>

                <div class="nav-actions">
                    <a href="login.html" class="btn btn-secondary">登录</a>
                    <a href="#contact" class="btn btn-primary">联系我们</a>
                    <button class="theme-toggle" id="themeToggle">
                        <i class="fas fa-moon"></i>
                        <span>深色模式</span>
                    </button>
                    <button class="mobile-menu" id="mobileMenu">
                        <i class="fas fa-bars"></i>
                    </button>
                </div>
            </nav>
        </div>
    </header>

    <section class="hero" id="home">
        <div class="container">
            <div class="hero-content">
                <h1>为企业提供创新的技术解决方案</h1>
                <p>TechCorp 专注于为企业提供定制化的软件开发、数字化转型和云计算解决方案，助力您的业务在数字时代取得成功。</p>
                <div class="hero-buttons">
                    <a href="#services" class="btn btn-primary">了解我们的服务</a>
                    <a href="#contact" class="btn btn-secondary">免费咨询</a>
                </div>
                <div class="hero-stats">
                    <div class="stat-item">
                        <div class="stat-number">500+</div>
                        <div class="stat-label">成功项目</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-number">150+</div>
                        <div class="stat-label">企业客户</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-number">98%</div>
                        <div class="stat-label">客户满意度</div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section id="services">
        <div class="container">
            <div class="section-header">
                <h2>我们的专业服务</h2>
                <p>从概念到实施，我们提供全方位的技术解决方案</p>
            </div>

            <div class="content-grid">
                <div class="content-card">
                    <div class="card-icon">
                        <i class="fas fa-laptop-code"></i>
                    </div>
                    <h3>定制软件开发</h3>
                    <p>根据您的业务需求，开发完全定制的软件解决方案，包括Web应用、移动应用和企业级系统。</p>
                    <a href="#" class="card-link">了解更多 <i class="fas fa-arrow-right"></i></a>
                </div>

                <div class="content-card">
                    <div class="card-icon">
                        <i class="fas fa-cloud-upload-alt"></i>
                    </div>
                    <h3>云计算解决方案</h3>
                    <p>帮助企业迁移到云端，优化IT基础设施，提高可扩展性和成本效益。</p>
                    <a href="#" class="card-link">了解更多 <i class="fas fa-arrow-right"></i></a>
                </div>

                <div class="content-card">
                    <div class="card-icon">
                        <i class="fas fa-chart-line"></i>
                    </div>
                    <h3>数据分析与AI</h3>
                    <p>利用先进的数据分析和人工智能技术，帮助您从数据中获取洞察，优化决策过程。</p>
                    <a href="#" class="card-link">了解更多 <i class="fas fa-arrow-right"></i></a>
                </div>
            </div>
        </div>
    </section>

    <section class="clients-section" id="clients">
        <div class="container">
            <div class="section-header">
                <h2>我们的客户</h2>
                <p>与各行业的领先企业合作，共同创造价值</p>
            </div>

            <div class="clients-grid">
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+1" alt="客户1">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+2" alt="客户2">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+3" alt="客户3">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+4" alt="客户4">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+5" alt="客户5">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+6" alt="客户6">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+7" alt="客户7">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+8" alt="客户8">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+9" alt="客户9">
                </div>
                <div class="client-logo">
                    <img src="https://placehold.co/120x50?text=Client+10" alt="客户10">
                </div>
            </div>
        </div>
    </section>

    <section id="team">
        <div class="container">
            <div class="section-header">
                <h2>我们的团队</h2>
                <p>由经验丰富的技术专家和行业顾问组成</p>
            </div>

            <div class="team-grid">
                <div class="team-member">
                    <img src="https://avatars.githubusercontent.com/u/583231?v=4" alt="团队成员" class="member-avatar">
                    <div class="member-name">张明</div>
                    <div class="member-role">首席技术官</div>
                    <p class="member-bio">拥有15年软件开发经验，专注于企业级应用架构和云计算解决方案。</p>
                    <div class="member-social">
                        <a href="#"><i class="fab fa-linkedin"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fab fa-github"></i></a>
                    </div>
                </div>

                <div class="team-member">
                    <img src="https://avatars.githubusercontent.com/u/583231?v=4" alt="团队成员" class="member-avatar">
                    <div class="member-name">李华</div>
                    <div class="member-role">产品总监</div>
                    <p class="member-bio">负责产品战略和用户体验设计，致力于创造直观高效的数字产品。</p>
                    <div class="member-social">
                        <a href="#"><i class="fab fa-linkedin"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fab fa-dribbble"></i></a>
                    </div>
                </div>

                <div class="team-member">
                    <img src="https://avatars.githubusercontent.com/u/583231?v=4" alt="团队成员" class="member-avatar">
                    <div class="member-name">王强</div>
                    <div class="member-role">数据科学主管</div>
                    <p class="member-bio">数据分析和机器学习专家，帮助企业从数据中提取有价值的商业洞察。</p>
                    <div class="member-social">
                        <a href="#"><i class="fab fa-linkedin"></i></a>
                        <a href="#"><i class="fab fa-twitter"></i></a>
                        <a href="#"><i class="fas fa-graduation-cap"></i></a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <section class="cta-section">
        <div class="container">
            <div class="cta-content">
                <h2>准备好开始您的数字化转型之旅了吗？</h2>
                <p>联系我们，获取免费的咨询和解决方案建议</p>
                <div class="hero-buttons">
                    <a href="#contact" class="btn btn-primary">立即咨询</a>
                    <a href="#" class="btn btn-secondary">查看案例研究</a>
                </div>
            </div>
        </div>
    </section>

    <section id="contact">
        <div class="container">
            <div class="section-header">
                <h2>联系我们</h2>
                <p>我们很乐意听取您的需求并提供解决方案</p>
            </div>

            <div class="contact-form">
                <form id="contactForm">
                    <div class="form-group">
                        <label for="name" class="form-label">姓名</label>
                        <input type="text" id="name" class="form-input" placeholder="请输入您的姓名" required>
                    </div>

                    <div class="form-group">
                        <label for="email" class="form-label">邮箱</label>
                        <input type="email" id="email" class="form-input" placeholder="请输入您的邮箱" required>
                    </div>

                    <div class="form-group">
                        <label for="company" class="form-label">公司名称</label>
                        <input type="text" id="company" class="form-input" placeholder="请输入您的公司名称">
                    </div>

                    <div class="form-group">
                        <label for="message" class="form-label">需求描述</label>
                        <textarea id="message" class="form-input form-textarea" placeholder="请简要描述您的需求"
                            required></textarea>
                    </div>

                    <button type="submit" class="btn btn-primary" style="width: 100%;">提交咨询</button>
                </form>
            </div>
        </div>
    </section>

    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h3>TechCorp</h3>
                    <ul class="footer-links">
                        <li><a href="#home">首页</a></li>
                        <li><a href="#services">服务</a></li>
                        <li><a href="#clients">客户</a></li>
                        <li><a href="#team">团队</a></li>
                    </ul>
                </div>

                <div class="footer-column">
                    <h3>服务</h3>
                    <ul class="footer-links">
                        <li><a href="#">定制软件开发</a></li>
                        <li><a href="#">云计算解决方案</a></li>
                        <li><a href="#">数据分析与AI</a></li>
                        <li><a href="#">数字化转型咨询</a></li>
                    </ul>
                </div>

                <div class="footer-column">
                    <h3>资源</h3>
                    <ul class="footer-links">
                        <li><a href="#">案例研究</a></li>
                        <li><a href="#">技术博客</a></li>
                        <li><a href="#">白皮书</a></li>
                        <li><a href="#">行业洞察</a></li>
                    </ul>
                </div>

                <div class="footer-column">
                    <h3>联系信息</h3>
                    <ul class="footer-links">
                        <li><i class="fas fa-map-marker-alt"></i> 北京市朝阳区科技园区</li>
                        <li><i class="fas fa-phone"></i> +86 10 1234 5678</li>
                        <li><i class="fas fa-envelope"></i> contact@techcorp.com</li>
                    </ul>
                </div>
            </div>

            <div class="footer-bottom">
                <p>© 2023 TechCorp. 保留所有权利。 | 采用 Github 风格设计 | 为企业提供专业的技术解决方案</p>
            </div>
        </div>
    </footer>

    <script>
        // 主题切换功能
        const themeToggle = document.getElementById('themeToggle');
        const themeIcon = themeToggle.querySelector('i');
        const themeText = themeToggle.querySelector('span');

        // 检查本地存储的主题偏好
        const currentTheme = localStorage.getItem('theme') || 'light';
        if (currentTheme === 'dark') {
            document.body.classList.add('dark-theme');
            themeIcon.classList.remove('fa-moon');
            themeIcon.classList.add('fa-sun');
            themeText.textContent = '浅色模式';
        }

        themeToggle.addEventListener('click', () => {
            document.body.classList.toggle('dark-theme');

            if (document.body.classList.contains('dark-theme')) {
                themeIcon.classList.remove('fa-moon');
                themeIcon.classList.add('fa-sun');
                themeText.textContent = '浅色模式';
                localStorage.setItem('theme', 'dark');
            } else {
                themeIcon.classList.remove('fa-sun');
                themeIcon.classList.add('fa-moon');
                themeText.textContent = '深色模式';
                localStorage.setItem('theme', 'light');
            }
        });

        // 移动端菜单切换
        const mobileMenu = document.getElementById('mobileMenu');
        const navLinks = document.querySelector('.nav-links');
        const menuIcon = mobileMenu.querySelector('i');

        mobileMenu.addEventListener('click', () => {
            navLinks.classList.toggle('active');

            if (navLinks.classList.contains('active')) {
                menuIcon.classList.remove('fa-bars');
                menuIcon.classList.add('fa-times');
            } else {
                menuIcon.classList.remove('fa-times');
                menuIcon.classList.add('fa-bars');
            }
        });

        // 点击菜单外区域关闭菜单
        document.addEventListener('click', (e) => {
            if (!e.target.closest('.navbar') && navLinks.classList.contains('active')) {
                navLinks.classList.remove('active');
                menuIcon.classList.remove('fa-times');
                menuIcon.classList.add('fa-bars');
            }
        });

        // 窗口大小变化时调整菜单状态
        window.addEventListener('resize', () => {
            if (window.innerWidth > 768) {
                navLinks.classList.remove('active');
                menuIcon.classList.remove('fa-times');
                menuIcon.classList.add('fa-bars');
            }
        });

        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();

                const targetId = this.getAttribute('href');
                if (targetId === '#') return;

                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });

                    // 移动端关闭菜单
                    if (window.innerWidth <= 768) {
                        navLinks.classList.remove('active');
                        menuIcon.classList.remove('fa-times');
                        menuIcon.classList.add('fa-bars');
                    }
                }
            });
        });

        // 联系表单提交
        const contactForm = document.getElementById('contactForm');
        contactForm.addEventListener('submit', (e) => {
            e.preventDefault();

            // 获取表单数据
            const formData = new FormData(contactForm);
            const data = Object.fromEntries(formData);

            // 模拟提交过程
            const submitBtn = contactForm.querySelector('button[type="submit"]');
            const originalText = submitBtn.textContent;

            submitBtn.disabled = true;
            submitBtn.textContent = '提交中...';

            setTimeout(() => {
                alert('感谢您的咨询！我们将在24小时内与您联系。');
                contactForm.reset();
                submitBtn.disabled = false;
                submitBtn.textContent = originalText;
            }, 1500);
        });
    </script>
</body>

</html>